from django.contrib import admin

from .models import Comment


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ["user", "rating", "text"]
    list_filter = ["rating"]
    date_hierarchy = "created"